home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / rooftopmadness.swf / scripts / frame_44 / PlaceObject2_182_187 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-05-23  |  391 b   |  21 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_level0.santa))
  3.    {
  4.       tellTarget("_level0.Santa.sleigh")
  5.       {
  6.          play();
  7.       }
  8.       setProperty("_level0.santa", _Y, _level0.santa._y - 10);
  9.    }
  10.    setProperty(this, _yscale, fScale);
  11.    if(20 >= fScale)
  12.    {
  13.       fPlus = 10;
  14.    }
  15.    else if(fScale >= 200)
  16.    {
  17.       fPlus = -10;
  18.    }
  19.    fScale += fPlus;
  20. }
  21.